package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文章评论实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleComment implements Serializable {
    
    /**
     * 评论ID
     */
    private Integer id;
    
    /**
     * 文章ID
     */
    private Integer articleId;
    
    /**
     * 评论用户ID
     */
    private Integer userId;
    
    /**
     * 评论内容
     */
    private String content;
    
    /**
     * 父评论ID，用于回复功能
     */
    private Integer parentId;
    
    /**
     * 评论时间
     */
    private LocalDateTime createTime;
} 